package com.bone.eventsweb;

import com.bone.eventsweb.service.IRedisService;
import org.junit.Test;

import javax.annotation.Resource;

public class testRedis {
    @Resource
    private IRedisService redisService;



    @Test
   public void contextLoads() {
        redisService.set("name","菜鸟");
        System.out.println(redisService.get("name"));

//        redisService.set("name", "xiaobai");
//        System.out.println(redisService.get("name"));//xiaobai
    }
}
